package o2o.dao.PO.common;


//回调结果

public class ResultInfo {
    private boolean success = false;//是否成功
    private String message;//成功信息
    private String error;//错误信息

    private Object obj;//成返回的对象

    public ResultInfo() {
        this.success = true;
    }

    public ResultInfo(String error) {
        this.success = false;
        this.error = error;
    }

    public ResultInfo(String message, Object obj) {
        this.success = true;
        this.message = message;
        this.obj = obj;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }
}
